﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="CtrSelectRole.ascx.cs" Inherits="Thksoft.UserCotrols.CtrSelectRole" %>

<script type="text/javascript">
    var ModalData = {
        Text: "",
        Value: ""
    };
    //提交表单
    function FORM_SUBMIT(DataStr) {
        var data = DataStr.split('%');
        ModalData.Text = data[0];
        ModalData.Value = data[1];
        //调用 父级页面关闭页面
        var index = parent.layer.getFrameIndex(window.name); //获取窗口索引
        top.$("#layui-layer" + index + " .layui-layer-close").click();
    }
    //关闭表单
    function FORM_CLOSE() {
        var index = parent.layer.getFrameIndex(window.name); //获取窗口索引
        top.$("#layui-layer" + index + " .layui-layer-close").click();
    }
</script>
<div style="float: left; width: 650px; margin-top: 5px; padding-left: 25px;">

    <table border="0" cellpadding="0" cellspacing="0" style="width: 600px;">

        <tr>
            <td style="width: 45%">
                <label>
                    供选择的项</label>
            </td>
            <td style="width: 9%"></td>
            <td style="width: 45%">
                <label>
                    被选择的项</label>
            </td>
        </tr>
        <tr>
            <td style="width: 45%">
                <div style="border: 0; overflow-x: hidden; overflow-y: auto">
                    <asp:ListBox ID="ListBoxBOCKM" runat="server" Width="100%" Height="321px" SelectionMode="Multiple"></asp:ListBox>
                </div>
            </td>
            <td style="vertical-align: middle; text-align: center; height: 321px; padding-right: 20px; width: 9%">
                <asp:Button ID="BtnRight" CssClass="bt_css_s" runat="server" Text=">>" OnClick="BtnRight_Click" /><br />
                <br />
                <br />
                <asp:Button ID="btnXS" CssClass="bt_css_s" runat="server" Text="↑" OnClick="btnXS_Click" /><br />
                <br />
                <br />
                <asp:Button ID="btnXX" CssClass="bt_css_s" runat="server" Text="↓" OnClick="btnXX_Click" /><br />
                <br />
                <br />
                <asp:Button ID="BtnLeft" CssClass="bt_css_s" runat="server" Text="<<" OnClick="BtnLeft_Click" /><br />
                <br />
                <br />
                <br />
            </td>
            <td style="width: 45%">
                <div style="border: 0; overflow-x: hidden; overflow-y: auto">
                    <asp:ListBox ID="ListBox" runat="server" Width="100%" Height="321px" SelectionMode="Multiple"></asp:ListBox>
                </div>
            </td>
        </tr>
        <tr>
            <td align="center" colspan="3">&nbsp; &nbsp;<asp:Button ID="btnSave" runat="server" Text="保存" CssClass="bt_css_s"
                OnClick="btnSave_Click" />&nbsp;
                    <asp:Button ID="btnCancel" runat="server" Text="取消" OnClientClick="FORM_CLOSE()"
                        CssClass="bt_css_s" />
            </td>
        </tr>
    </table>
</div>